package cn.edu.gduf.luowowo.scenic.mapper;

import cn.edu.gduf.luowowo.scenic.domain.ScenicDetial;
import cn.edu.gduf.luowowo.scenic.query.ScenicQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicDetialMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicDetial record);

    ScenicDetial selectByPrimaryKey(Long id);

    List<ScenicDetial> selectAll();

    int updateByPrimaryKey(ScenicDetial record);

    List<ScenicDetial> selectTop5ByScDetialId(Long scId);

    List<ScenicDetial> selectTop10ByScDetialId(Long scId);

    List<ScenicDetial> selectForList(ScenicQuery qo);

    ScenicDetial selectScDetialByDetialId(Long detialId);

    List<ScenicDetial> selectInsideScById( Long id);

    void updateFavorNumById(@Param("scId") Long scId, @Param("num") int num);

    void updateBeenNumById(@Param("scid") Long scid, @Param("num") int num);
}